package com.foton.logistic.util;

import android.app.Activity;
import android.content.Intent;

import com.foton.logistic.activity.set.ActWebActivity;

/**
 * Created by macbook on 2018/1/9.
 */

public class IntentUtil {
    public static void intent2PrivacyRuler(Activity activity) {
        try {
            String path = "file:///android_asset/privacy.html";

            Intent intent = new Intent(activity, ActWebActivity.class);
            intent.putExtra(BaseConstant.INTENT_TYPE, "隐私协议");
            intent.putExtra(BaseConstant.INTENT_CONTENT, path);
            activity.startActivity(intent);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
